//
//  SetUpTableViewCell.m
//  EngineeringDetection
//
//  Created by DJtd on 16/8/19.
//  Copyright © 2016年 DJtd. All rights reserved.
//

#import "SetUpTableViewCell.h"

@implementation SetUpTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.label = [[CustomLabel alloc] initWithFrame:CGRectZero _text:@"" _font:18];
        self.label.textAlignment = NSTextAlignmentLeft;
        self.label.textColor = GrayColor;
     
        self.Img = [[UIImageView alloc] initWithFrame:CGRectZero];
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectZero];
        self.image.image = [UIImage imageNamed:@"right"];
        self.image.contentMode = UIViewContentModeScaleAspectFit;
        
        self.blackLine = [[UILabel alloc] initWithFrame:CGRectZero];
        self.blackLine.backgroundColor = LineColor;
        
        [self.contentView addSubview:self.Img];
        [self.contentView addSubview:self.label];
        [self.contentView addSubview:self.image];
        [self.contentView addSubview:self.blackLine];
    }
    return self;
}


- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.Img.frame = CGRectMake(0, 0, ConViewHeight, ConViewHeight);
    self.label.frame = CGRectMake(ConViewWidth * 20/480 + ConViewHeight, 0, ConViewWidth / 2, ConViewHeight);
    self.blackLine.frame = CGRectMake(0, ConViewHeight - 1, ConViewWidth, 1);
    self.image.frame = CGRectMake(ConViewWidth - ConViewHeight, 0, ConViewHeight, ConViewHeight);
}






@end
